using System;
using MonoTouch.Dialog;


namespace Socialite
{
	public class BasicSignupInfo
	{
		[Section ("Basic Profile Info")]
		
		[Caption ("First Name")]
		[Entry ("Enter your first name")]
		public string FirstName{ get; set;}
		
		[Caption ("Last Name")]
		[Entry ("Enter your last name")]
		public string LastName{ get; set;}
		
		[Section]		
		
		[Entry]
		public Sex Gender{ get; set;} 		
		
		[Entry]
		public RelationshipStatus Status{ get; set;}
		
		[Entry]
		public Ethnicity Race{ get; set;}
		
		[Date]
		public DateTime Birthday {
			get {
				return _birthday;
			}
			
			set {
				_birthday = value;
				Age = _birthday.Year - System.DateTime.Today.Year;
			}
		}
		private DateTime _birthday;
		
		[Section ("Login Info")]
		[Entry ("Enter your email")]
		public string Email{ get; set;}
		
		[Password ("Enter your password")]
		public string Password{ get; set;}
		
		[Caption ("Confirm Password")]
		[Password ("Confirm your password")]
		public string ConfirmedPassword{ get; set;}
		
		public int Age {get; set;}
		
		public BasicSignupInfo ()
		{
			Birthday = System.DateTime.Today;
		}
	}
}

